home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Business Heaven
/
Business Heaven.iso
/
contact
/
sfs20a
/
install.fil
< prev
next >
Wrap
Text File
|
1993-04-12
|
4KB
|
166 lines
BACKGROUND 63
TELESCOPE OFF
WINOPEN 0 2 95
" Surefire Version S2.0 Installation "
""
" Copyright 1993 Piaf, Inc."
" (303) 786-8222"
""
" (Press Esc to Abort)"
TELESCOPE OFF
SHADOW OFF
' Make sure the correct files exist on the 1st disk
EXIST ~0\sfs20a.zip
JUMP.NO FILE_NOT_THERE
EXIST ~0\pkunzip.exe
JUMP.YES START
:FILE_NOT_THERE ' A file is missing from the 1st disk
WINOPEN 0 11 79
""
" The file SFS20A.ZIP or PKUNZIP.EXE "
" is missing from Surefire Disk 1"
""
" Installation will terminate."
""
" Press [Enter]..."
WAIT +18 +7
END
:START
DOS 3.1 ' Check for minimum DOS version
JUMP.YES DOS_VERS_OK
WINOPEN 0 11 79
""
" Surefire requires DOS 3.1 or better."
" This computer has an older version."
""
" Installation will terminate."
""
" Press [Enter]..."
WAIT +18 +7
END
:DOS_VERS_OK
MEMORY 640 ' Check for enough base memory
JUMP.YES BASE_MEM_OK
WINOPEN 0 11 79
""
" Surefire requires 640KB of base memory."
" This computer has less than 640KB."
""
" Installation will terminate."
""
" Press [Enter]..."
WAIT +19 +7
END
:BASE_MEM_OK
SPACE 2000 ' Check for enough disk space
' Error message displayed by DRIVE
:DEST_DRIVE
DRIVE C 0 11 31 15 32 14 79
PATH \sfshare 0 11 31 15 32 14 79
EXIST ~1~2\*.* ' Check for Destination Directory
JUMP.NO UNPACK ' Doesn't exist so go to UNPACK
WINOPEN 0 11 79
"The directory ~1~2 already exists and contains files!"
""
" Installing Surefire in this directory will delete"
" all files in this directory prior to installing."
""
"Are you SURE you want to install it here? (Type Y or N)"
BEEP
ASK +57 +6
WINCLOSE
JUMP.NO DEST_DRIVE
:UNPACK
' Delete all files in destination directory
DELETE ~1~2\*.* 0 24 31
DELETE ~1~2\contacts\*.* 0 24 31
' Copy the files from the first disk to the destination
COPY ~0\sfs20a.zip ~1~2 0 24 31
JUMP.FAIL INSTALL_FAILURE
COPY ~0\pkunzip.exe ~1~2 0 24 31
JUMP.FAIL INSTALL_FAILURE
EXIST ~0\sfs20b.zip ' Check if the 2nd zip file is on the same disk
JUMP.YES COPY_SECOND
DISK 2 sfs20b.zip 2 12 31 ' Have the user put the 2nd disk in the drive
:COPY_SECOND ' Copy 2nd zip file to the destination
COPY ~0\sfs20b.zip ~1~2 0 24 31
JUMP.FAIL INSTALL_FAILURE
SHELL ' Unzip the 2 zip file and delete them
"~1~2\pkunzip -do ~1~2\sfs20a.zip ~1~2\"
"del ~1~2\sfs20a.zip"
"~1~2\pkunzip -o ~1~2\sfs20b.zip ~1~2\"
"del ~1~2\sfs20b.zip"
"del ~1~2\pkunzip.exe"
JUMP.FAIL INSTALL_FAILURE
WINOPEN 0 11 31
"Do you want Surefire to be added to your PATH? (Type Y or N)"
""
" This allows you to run Surefire at any time without"
" changing to the surefire directory."
""
ASK +61 +1
WINCLOSE
JUMP.NO DONE
SET.PATH ~1~2
:DONE
SHADOW ON
WINOPEN 0 11 31
" INSTALLATION COMPLETED SUCCESSFULLY "
""
" Surefire will now be executed."
""
" THANK YOU FOR TRYING SUREFIRE!"
""
"Press the [Enter] key to continue..."
WAIT +38 +7
WINCLOSE
RUN ~1~2\SFINFO
:EXIT
END
:INSTALL_FAILURE
WINOPEN 0 11 79
"THE INSTALLATION PROGRAM FAILED PRIOR TO COMPLETION!"
""
"Possible reasons:"
" -- The floppy disk was damaged during shipping."
" -- Your disk drive is out of alignment."
" -- The floppy disk was removed prior to completion."
""
"Press [Enter] to remove incomplete program files."
WAIT +50 +8
PROMPT OFF
DELETE ~1~2\*.* 0 0 31
RD ~1~2
PROMPT ON
WINCLOSE
WINCLOSE
WINOPEN 0 11 31
"PARTIALLY INSTALLED FILES HAVE BEEN DELETED."
""
"Press [Enter] to Quit."
WAIT +14 +24
END